package org.csu.spring.demo.aop.proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class ProxyDemo implements InvocationHandler {

   private Object object;

   public ProxyDemo(Object object){
       this.object=object;
   }


    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

       Object proxyObject=   method.invoke(object,args);

       return proxyObject;
    }


}